package com.xinqi.modules.course.comment.service;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.course.comment.domain.CommentGiveEntity;


/**
 * 栏目评论点赞表服务层
 *
 * @author: yyzhen
 * @date: 2023/03/20
 */
public interface CommentGiveService extends BaseService<CommentGiveEntity> {

    /**
     * 根据评论与用户获取点赞
     *
     * @param comId
     * @param userId
     * @return
     */
    CommentGiveEntity selectByComIdAndUserId(Long comId, Long userId);

    /**
     * 根据评论删除点赞
     *
     * @param comId
     * @return
     */
    Boolean deleteByComId(Long comId);

}
